package de.lns.entities.mobs;

import java.nio.FloatBuffer;

import de.lns.entities.ai.Standardmobai;
import de.lns.render.ModelFactory;

/**
 * 
 * @author Jascha
 * 
 */
public class Gnome extends Mob {
	private static double radius = 12;
	private static String texturepath = "entities/MobGnome.png";
	private static FloatBuffer mesh = ModelFactory.genRectMesh(
			(float) radius * 2, (float) radius * 2);
	private static int textureid;
	static {
		textureid = de.lns.render.TextureLoader.loadTexture(texturepath);
	}

	/**
	 * 
	 * @param posX The SpawnXPostion of the Gnome
	 * @param posY The SpawnYPostion of the Gnome
	 * @param path The path of this Gnome
	 */
	public Gnome(double posX, double posY, int[] path) {
		super(posX, posY, radius, path, 100, 80);
		setArmor(5, 5, 5, 15, 15, 5);
		this.setAi(new Standardmobai(this));
	}

	@Override
	public FloatBuffer getMesh() {
		return mesh;
	}

	public int getTextureID() {
		return textureid;
	}

}
